<x-produt>
    <!-- banner -->
    @if (!empty($nav->adv))
    <div id="nei_banner1">
        <img src="{{ $nav->adv }}" alt="{{ $nav->name }}">
    </div>
    @endif
    <!-- banner end -->

    <div id="web_er_nav_one">
        <div class="service_nav">
            @if (!empty($categoryList))
            <a href="/content/{{ $nav->id }}">全部</a>
            @foreach($categoryList as $item)
            <a href="/content/{{ $nav->id }}?category_id={{ $item->id }}">{{$item->title}}</a>
            @endforeach
            @endif
        </div>
    </div>

    <div id="index10" class="product_list">
        <div class="wp">
            <div class="index10_list">
                @foreach($list as $item)
                <div class="item">
                    <a href="/article/{{ $item->id }}">
                        <div class="con">
                            <div class="pic">
                                <div class="img" style="background-image: url({{$item->image}});">
                                </div>
                            </div>
                            <div class="text">
                                <h4>{{ $item->title }}</h4>
                                <p>{{ $item->description }}</p>
                            </div>
                        </div>
                    </a>
                </div>
                @endforeach
            </div>

            <div id="page">
                {{ $list->appends(['category_id' => request('category_id')])->links() }}
            </div>
        </div>
    </div>
</x-produt>
